<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBookingTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('booking', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("admin_id")->comment('管理员ID');
            $table->string("name")->comment("票台名称");
            $table->string("office")->comment("office号");
            $table->string("account")->comment("账号");
            $table->string("pwd")->comment("密码");
            $table->integer("type")->default(1)->comment('票台类型：1=携程，2=去哪，3=同程，4=飞猪');
            $table->tinyInteger("status")->default(1)->comment('状态：1=正常，2=禁用');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('booking');
    }
}
